CSharpTest.Net
TryUpdate Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > IConcurrentDictionary<TKey,TValue> Interface : TryUpdate Method

key
fnUpdate

Glossary Item Box

Modify the value associated with the result of the provided update method as an atomic operation, Allows for reading/writing a single record within the tree lock. Be cautious about the behavior and performance of the code provided as it can cause a dead-lock to occur. If the method returns an instance who .Equals the original, no update is applied.

Syntax

Visual Basic (Declaration) 
Function TryUpdate( _
   ByVal key As TKey, _
   ByVal fnUpdate As CSharpTest.Net.Collections.KeyValueUpdate(Of TKey,TValue) _
) As Boolean
C# 
bool TryUpdate( 
   TKey key,
   CSharpTest.Net.Collections.KeyValueUpdate<TKey,TValue> fnUpdate
)

Parameters

key
fnUpdate

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys